clear 
set more off

import delimited ./RawData/husbandocc.csv, case(preserve) 

label define vlR0069100 -999 "-999 TO -6: <0"  0 "0 TO 195: PROFESSIONAL, TECHNICAL, AND KINDRED WORKERS"  250 "250 TO 290: MANAGERS, OFFICIALS, AND PROPRIETORS, EXCEPT FARM"  301 "301 TO 370: CLERICAL AND KINDRED WORKERS"  380 "380 TO 395: SALES WORKERS"  401 "401 TO 545: CRAFTSMEN, FOREMEN, AND KINDRED WORKERS"  601 "601 TO 775: OPERATIVES AND KINDRED WORKERS (INCLUDES MINE WORKERS)"  801 "801 TO 804: PRIVATE HOUSEHOLD WORKERS"  810 "810 TO 890: SERVICE WORKERS, EXCEPT PRIVATE HOUSEHOLD WORKERS"  200 "200 TO 222: FARMERS AND FARM MANAGERS"  901 "901 TO 905: FARM LABORS AND FOREMAN"  960 "960 TO 985: LABORERS, EXCEPT FARM AND MINE WORKERS"  555 "555: MEMBERS OF THE ARMED FORCES"  995 "995: OCCUPATION NOT REPORTED"  999 "999: DON'T KNOW" 
label values R0069100 vlR0069100

rename R0069100 husband_occ

save ./RawData/husbandocc.dta, replace
